How KNN Algorithm works with example